
using System;
using System.Drawing;

using MonoTouch.Foundation;
using MonoTouch.UIKit;

namespace Socialite
{
	public partial class PriceRangeSelectorCell  : UITableViewCell
	{
		public PriceRangeSelectorCell() : base()
		{
		}
		
		public PriceRangeSelectorCell(IntPtr handle) : base(handle)
		{
		}
		
		public void BindDataToCell (SearchCriteria criteria)
		{
			ModeSelector.AutoresizingMask = UIViewAutoresizing.FlexibleWidth;
			ModeSelector.ValueChanged += (sender, e) => 
			{
				criteria.PriceRange = (PriceRange)(ModeSelector.SelectedSegment);
			};
		}
	}
}